tmem: Add ASSERT in obj_rb_insert for pool->rwlock lock.
authorKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Fri, 21 Aug 2015 14:49:22 +0000 (10:49 -0400)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Wed, 2 Sep 2015 12:47:59 +0000 (08:47 -0400)
commit7646da32f6a863b4c9c7ec9a7226bf675921622e
tree744cc6f88b64535462cb0ba2bd5f32767b7039ef
parent7ec4b2f89e54d8bdfbeb5f4a4c2ec85d15819e8b
tmem: Add ASSERT in obj_rb_insert for pool->rwlock lock.

Manipulating the obj-> structures requires us to hold the
pool->rwlock lock. Lets make that obvious in this function to
catch any errant users (none found, but we may in future).

Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Wei Liu <wei.liu2@citrix.com>
xen/common/tmem.c